<?php
namespace backend\modules\person\forms;

use common\models\person\Person;


class PersonForm extends Person
{
    public $province_id = '';
    public $city_id = '';
    public $area_id = '';
    /**
     * {@inheritdoc}
     * 增加时走的验证 没有验证的为不安全数据 不会被添加
     */
    public function rules()
    {
        return [
            [['name', 'tel','sex','img','cla_id','mail'], 'required'],
            [['name'], 'string', 'max' => 150],
            [['hobby_id'], 'safe'],
            ['mail', 'email'],
        ];
    }
}